<?php

/**
 * 默认控制器
 */
class Controller_Default extends Controller_Abstract
{
    function actionIndex()
    {
    	$this->_view['htmlTemplates'] = Htmltemplates::model()->getDefaultshows();
    	$this->_view['jqueryPlugins'] = Jqueryplugins::model()->getDefaultshows();
    	
    	$this->_view['picMaterials'] = Pictures::model()->getDefaultshows();
    	$this->_view['albums'] = Albums::model()->find('*', null, array('limit' => 10));
    	
    	$this->_view['htmlRecommends'] = Htmltemplates::model()->getRecommends();
//    	$this->_view['htmlDownloads'] = Htmltemplates::model()->getTopDownloads();
//    	$this->_view['htmlVieweds'] = Htmltemplates::model()->getTopViews();
    	$this->_view['jqueryRecommends'] = Jqueryplugins::model()->getRecommends();
//    	$this->_view['jqueryDownloads'] = Jqueryplugins::model()->getTopDownloads();
//    	$this->_view['jqueryVieweds'] = Jqueryplugins::model()->getTopViews();
    }
    
    function actionContact()
    {
    	
    }
    
    function action()
    {
    	
    }
}

